package com.lopo.smstest;

import org.springframework.stereotype.Component;

@Component
@Deprecated
public class SmsHandler {
    private SendSmsHandler sendSmsBehavior;

    public SmsHandler() {
    }

    public void setSmsBehavior(SendSmsHandler sendSmsBehavior) {
        this.sendSmsBehavior = sendSmsBehavior;
    }

    public void sendSms(SmsDTO smsDTO) {
        if (sendSmsBehavior != null) {
            sendSmsBehavior.sendSms(smsDTO);
        }
    }


}
